package com.zzy.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzy.system.domain.SaleOrderDetail;
import com.zzy.system.domain.SaleOrderDriver;
import com.zzy.system.mapper.SaleOrderDetailMapper;
import com.zzy.system.mapper.SaleOrderDriverMapper;
import com.zzy.system.mapper.SaleOrderMapper;
import com.zzy.system.service.ISaleOrderDetailService;
import com.zzy.system.service.ISaleOrderDriverService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SaleOrderDriverServiceImpl extends ServiceImpl<SaleOrderDriverMapper, SaleOrderDriver> implements ISaleOrderDriverService {
    private static final Logger log = LoggerFactory.getLogger(SaleOrderDriverServiceImpl.class);

    @Override
    public void saveOrderDriver(List<SaleOrderDriver> saleOrderDriverList) {
        if(!saleOrderDriverList.isEmpty()){
            this.saveBatch(saleOrderDriverList);
        }
    }
}